<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>
	<body>
		<script>
			//声明用户名、密码、验证码
			var rightName = "supei";
			var rightPwd = "fanfan666";
			var rightCode = Math.floor(Math.random()*9000+1000);
			
			var inputName=prompt("请您输入您的用户名：");
			if(rightName!=inputName){
				alert("用户名不正确！");
			}else{
				var  inputPwd = prompt("请您输入您的密码：");
				if(rightPwd!=inputPwd){
					alert("密码不正确！");
				}else{
						alert("验证正确！");
					}
				}
			}
		</script>
	</body>
</html>
